<% for link in links %>
	<ul>
		<li>
		<%= link_to link.title, link.generate_for_link_to %>
		<% unless link.childs.empty? %>
			<%= render :partial => 'layouts/menu', :locals => { :links => link.childs } %>
		<% end %>
		</li>
	</ul>
<% end %>